package com.atguigu08.construct.ex2;

public class TriAngle {
    private  double height;
    private  double base;

    public TriAngle(double height, double base) {
        this.height = height;
        this.base = base;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public double getBase() {
        return base;
    }

    public void setBase(double base) {
        this.base = base;
    }

    public double Area(){
        return this.height*this.base*0.5;
    }

}
